package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class YearSpotAnalysisMapper implements RowMapper<YearSpotAnalysis> {
    @Override
    public YearSpotAnalysis mapRow(ResultSet rs, int rowNum) throws SQLException {
        YearSpotAnalysis yearSpotAnalysis=new YearSpotAnalysis();
       yearSpotAnalysis.setSpotid(rs.getString("spotid"));
        yearSpotAnalysis.setTimes(rs.getString("times"));
        yearSpotAnalysis.setMonth_count(rs.getString("month_count"));
        return yearSpotAnalysis;
    }
}
